const TokenKey = 'Authorization'
const userKey = 'userInfo'

export default {
  getToken() {
    return localStorage.getItem(TokenKey)
  },
  setToken(token) {
    return localStorage.setItem(TokenKey, token)
  },
  removeToken() {
    return localStorage.removeItem(TokenKey)
  },
  getUserInfo() {
    return localStorage.getItem(userKey)
  },
  setUserInfo(userInfo) {
    return localStorage.setItem(userKey, userInfo)
  },
  removeUser() {
    return localStorage.removeItem(userKey)
  }
}
